<?php
$arr = array(
    array('name' => '林冲', 'sex' => '男'),
    array('name' => '松江', 'sex' => '男')
);
//var_dump($arr);
foreach ($arr as $k => $v) {
    foreach ($v as $k1 => $v1) {
        echo $k1 . $v1 . '<br>';
    }
}
